package com.fan.jicheng.homework;

import java.util.Random;

public class Food {
    private    double   YingYangZhi;
    private   String  name;

    public double getYingYangZhi() {
        return YingYangZhi;
    }

    protected void setYingYangZhi(double YingYangZhi) {
        YingYangZhi = YingYangZhi;
    }

    protected Food() {
       YingYangZhi=Math.random()*10;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "Food{" +
                "YingYangZhi=" + YingYangZhi +
                ", name='" + name + '\'' +
                '}';
    }
}
